package com.mioto.ld.module.device.service.impl;

import org.springframework.stereotype.Service;

import com.mioto.ld.module.device.dao.DevicePressTimeLogDao;
import com.mioto.ld.module.device.model.DevicePressTimeLog;
import com.mioto.ld.module.device.service.IDevicePressTimeLogService;
import javax.annotation.Resource;
import java.util.List;

/**
 *
 * @author mioto
 * @date 2024-06-13 20:16:51
 */
@Service("devicePressTimeLogService")
public class DevicePressTimeLogServiceImpl implements IDevicePressTimeLogService{

    @Resource
    private DevicePressTimeLogDao devicePressTimeLogDao;

    @Override
    public List<DevicePressTimeLog> findList(DevicePressTimeLog devicePressTimeLog) {
        return devicePressTimeLogDao.findList(devicePressTimeLog);
    }

    @Override
    public int insert(DevicePressTimeLog devicePressTimeLog) {
        return devicePressTimeLogDao.insertIgnoreNull(devicePressTimeLog);
    }

    @Override
    public int update(DevicePressTimeLog devicePressTimeLog) {
        return devicePressTimeLogDao.update(devicePressTimeLog);
    }

    @Override
    public int updateIgnoreNull(DevicePressTimeLog devicePressTimeLog) {
        return devicePressTimeLogDao.updateIgnoreNull(devicePressTimeLog);
    }

    @Override
    public DevicePressTimeLog findByColumn(String column, Object value) {
        return devicePressTimeLogDao.findByColumn(column,value);
    }

    @Override
    public int deleteByColumn(String column, Object value) {
        return devicePressTimeLogDao.deleteByColumn(column,value);
    }

    @Override
    public int batchDelete(Integer[] ids) {
        return devicePressTimeLogDao.batchDelete(ids);
    }
}